<template>
  <el-switch 
    inline-prompt
    v-model="theme" 
    active-value="dark" 
    inactive-value="default" 
    active-icon="el-icon-moon" 
    inactive-icon="el-icon-sunny"
  />
</template>

<script setup>
import useTheme from '@/hooks/useTheme'
const {theme} = useTheme()
useTheme()
</script>